//
//  iPhoneKMLAppDelegate.m
//  iPhoneKML
//
//  Created by Benjamin Blundell on 23/10/2009.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import "iPhoneKMLAppDelegate.h"
#import "RegexKitLite.h"

@implementation iPhoneKMLAppDelegate

@synthesize window;
@synthesize navController;



- (void)applicationDidFinishLaunching:(UIApplication *)application {
	[window addSubview:[navController view]];
	[window makeKeyAndVisible];
	
	CLLocationManager *manager = [[CLLocationManager alloc] init];
    if (manager.locationServicesEnabled == NO) {
        UIAlertView *servicesDisabledAlert = [[UIAlertView alloc] initWithTitle:@"Location Services Disabled" message:@"You currently have all location services for this device disabled. If you proceed, you will be asked to confirm whether location services should be reenabled." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
        [servicesDisabledAlert show];
        [servicesDisabledAlert release];
    }
    [manager release]; 

}


- (void)dealloc {
    [navController release];
    [window release];
    [super dealloc];
}


@end

